import Home from '../views/Home.vue'
export default [
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }, {
    path: '/',
    name: 'home',
  
        component: () => import('@/views/Home.vue'),
        meta: {
          keepAlive: true
        }
        
  },

  {
    path: '/argu/:name',
        name: 'params',
        meta: {
          title: '参数'
        },
        component: () => import('@/views/argu.vue'),
        props: true
  },
  {
    name: 'login',
    path: '/login',
    component: () => import('@/views/login.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    name: 'article',
    path: '/article',
    component: () => import('@/views/article.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    name: 'add',
    path: '/add',
    component: () => import('@/views/add.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    name: 'review',
    path: '/review',
    component: () => import('@/views/review.vue'),
    meta: {
      keepAlive: false
    }
  },
  {
    name: 'doreview',
    path: '/doreview/:id',
    component: () => import('@/views/doreview.vue'),
    meta: {
      keepAlive: false
    },
    props: true
  },
  {
    name: 'View',
    path: '/view/:id',
    component: () => import('@/views/View.vue'),
    meta: {
      keepAlive: true
    },
    props: true
  },
  {
    name: 'reg',
    path: '/reg',
    component: () => import('@/views/reg.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    name: 'space',
    path: '/space',
    component: () => import('@/views/space.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    name: 'search',
    path: '/search',
    component: () => import('@/views/search'),
    meta: {
      keepAlive: true
    }
    },
    {
      name: 'userpage',
      path: '/userpage/:id',
      component: () => import('@/views/userpage'),
      meta: {
        keepAlive: true
      },props: true

    }
  

]
